package com.lingxu.api.ztb.mapper;

import com.lingxu.api.ztb.model.ViewRegCompany;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lingxu.api.ztb.model.vo.ViewRegCompanyVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;


import java.util.List;
import java.util.Map;

/**
 * 视图单位基本信息表 Mapper接口
 *
 * @author admin
 * @since 2025-07-31
 */
@Mapper
public interface ViewRegCompanyMapper extends BaseMapper<ViewRegCompany> {
    /**
     * 查询视图单位基本信息表
     *
     * @return
     */
    List<ViewRegCompanyVO> selectViewRegCompanyList(@Param("query") ViewRegCompanyVO vo);

    IPage<ViewRegCompanyVO> pageList(@Param("page") Page<ViewRegCompanyVO> page, @Param("query") ViewRegCompanyVO vo);

    List<ViewRegCompanyVO> getDataForExport(@Param("query") ViewRegCompanyVO vo);

    void createTempTable(@Param("batchFlag")String batchFlag);
    void insertTempTable(@Param("list") List<ViewRegCompanyVO> dataList, @Param("batchFlag")String batchFlag);
    void insertTable(@Param("batchFlag")String batchFlag);
    void dropTempTable(@Param("batchFlag")String batchFlag);

    String getCompanyNameByCompanied(@Param("companied") String companied);
}
